
package com.yuxi.Controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import com.yuxi.Request.InformationQuery;
import com.yuxi.Request.OwnExport;
import com.yuxi.Request.OwnQuery;
import com.yuxi.Request.Page;
import com.yuxi.excelEntity.OwnWordInfo;
import com.yuxi.excelEntity.OwnWordRecord;
/**
 *@version 0.1 2016-07-20 21:01:47
 * @author wyd
 * */
@Controller
public interface UtilController {
	/**
	 * 用户上传文件
	 * @author wyd
	 * */
	@ResponseBody
	@RequestMapping(value="/userFileUp.do",produces={"text/html;charset=utf-8"})
	public String userFileUp(@RequestParam("files") MultipartFile[] files,HttpServletRequest request,HttpServletResponse response);

	/**
	 * 用户导出excel
	 * */
	@RequestMapping(value="/LoginFilter/importExcel.do")
	public void importExcel(int[] idArray, HttpServletRequest request, HttpServletResponse response, HttpSession session)
			throws IOException;
	/**
	 * 用户导出分析研判excel
	 * @param idArray
	 * @param request
	 * @param response
	 * @param session
	 * @throws IOException
	 */
	@RequestMapping(value="/LoginFilter/imporExcelForAnalysis.do")
	public void imporExcelForAnalysis(int[] idArray, HttpServletRequest request, HttpServletResponse response, HttpSession session)
			throws IOException;
	/**
	 * 用户导出监区即时任务excel
	 * @param idArray
	 * @param request
	 * @param response
	 * @param session
	 * @throws IOException
	 */
	@RequestMapping(value="/LoginFilter/imporExcelForRealtimeTasks_prisonArea.do")
	public void imporExcelForRealtimeTasks_prisonArea(int[] idArray, HttpServletRequest request, HttpServletResponse response, HttpSession session)
			throws IOException;
	/**
	 * 用户导出监狱即时任务excel
	 * @param idArray
	 * @param request
	 * @param response
	 * @param session
	 * @throws IOException
	 */
	@RequestMapping(value="/LoginFilter/imporExcelForRealtimeTasks_prison.do")
	public void imporExcelForRealtimeTasks_prison(int[] idArray, HttpServletRequest request, HttpServletResponse response, HttpSession session)
			throws IOException;
	/**
	 * 用户导出监区任务派遣excel
	 * @param idArray
	 * @param request
	 * @param response
	 * @param session
	 * @throws IOException
	 */
	@RequestMapping(value="/LoginFilter/imporExcelForTasks_prisonArea.do")
	public void imporExcelForTasks_prisonArea(int[] idArray, HttpServletRequest request, HttpServletResponse response, HttpSession session)
			throws IOException;
	/**
	 * 用户导出监狱任务派遣excel
	 * @param idArray
	 * @param request
	 * @param response
	 * @param session
	 * @throws IOException
	 */
	@RequestMapping(value="/LoginFilter/imporExcelForTasks_prison.do")
	public void imporExcelForTasks_prison(int[] idArray, HttpServletRequest request, HttpServletResponse response, HttpSession session)
			throws IOException;
	/**
	 * 用户导出信息研判会议记录word
	 * @param time
	 * @param address
	 * @param people
	 * @param context
	 * @param request
	 * @param response
	 * @param session
	 */
	@RequestMapping(value="/LoginFilter/importWord.do")
	public void importWord(String time,String address,String people,String context,HttpServletRequest request, HttpServletResponse response, HttpSession session)
			throws IOException;
	/**
	 * 用户导出民警个人情况表
	 * 
	 * */
	@RequestMapping(value="/LoginFilter/exportPoliceOwn.do")
	public void exportPoliceOwn(String startTime,String endTime,HttpSession session,HttpServletRequest request,HttpServletResponse response);
	
	/**
	 * 民警个人情况查询信息
	 * @param query
	 * @param session
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="/LoginFilter/policeQuery.do",
	produces={"application/json;charset=utf-8"})
	public String policeQuery(InformationQuery query,HttpSession session);
	
	/**
	 * 获取当前登录用户可选择的信息所属监区或监狱
	 * @param session
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="/LoginFilter/getCanCheckPrison.do",
	produces={"application/json;charset=utf-8"})
	public String getCanCheckPrison(HttpSession session);
	
	/**
	 * 根据查询条件获取民警个人导出表记录
	 * @param p
	 * @param session
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="/LoginFilter/getQueryPoleceTableList.do",
	produces={"application/json;charset=utf-8"})
	public String getQueryPoleceTableList(OwnQuery query,Page<OwnWordRecord> p,HttpSession session);

	/**
	 * @param session
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="/LoginFilter/getCanChangePrison.do",
	produces={"application/json;charset=utf-8"})
	public String getCanChangePrison(Integer infoId,HttpSession session);
	
	/**
	 * 导出日搜日解表
	 * @param infoArray
	 * @param session
	 * @param request
	 * @param response
	 */
	@ResponseBody
	@RequestMapping(value="/LoginFilter/exportExcelRsRj.do",
	produces={"application/json;charset=utf-8"})
	public void exportExcelRsRj(String startTime,String endTime,HttpSession session,HttpServletRequest request,HttpServletResponse response);
	
	/**
	 * 获取当前登录用户的B角
	 * @param session
	 * @return
	 */	
	@ResponseBody
	@RequestMapping(value="/LoginFilter/getCurUserB.do",
	produces={"application/json;charset=utf-8"})
	public String getCurUserB(HttpSession session);
	
	/**
	 * 修改用户B角
	 * @param userId
	 * @param userName
	 * @param session
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="/LoginFilter/modifyUserB.do",
	produces={"application/json;charset=utf-8"})
	public String modifyUserB(Integer userId,String userName,HttpSession session);
	
	
	
	/**
	 * 导出会议记录word文档
	 * @param address
	 * @param time
	 * @param pnames
	 * @param session
	 * @param response
	 */
	@ResponseBody
	@RequestMapping(value="/LoginFilter/ExportTaskReseachWord.do",
	produces={"application/json;charset=utf-8"})
	public void ExportTaskReseachWord(Integer[] array,String address,String time,String people,HttpSession session,HttpServletResponse response,HttpServletRequest request);
	
	/**
	 * 用户自定义导出
	 * */
	
	@RequestMapping(value="/LoginFilter/ExportUserCustomExcel.do")
	public void ExportUserCustomExcel(Integer[] idArray,
			String[] title,String tablename,HttpServletRequest request,HttpServletResponse 
			reponse);
	
	/**
	 * 个人民警导出点评
	 * */
	@ResponseBody
	@RequestMapping(value="/LoginFilter/CommentFilter/ownWordComment.do",
	produces={"application/json;charset=utf-8"})
	public String ownWordComment(Integer id,String comment,HttpServletRequest request,HttpServletResponse response);
	
	/**
	 * 添加一条浏览记录民警导出表
	 * @param id
	 * @param session
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="/LoginFilter/addBorwseRec.do",
	produces={"application/json;charset=utf-8"})
	public String addBorwseRec(Integer id,HttpSession session);
	
	/**
	 * 获取民警导出记录的浏览记录
	 * @param id
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="/LoginFilter/getBorecord.do",
	produces={"application/json;charset=utf-8"})
	public String getBorecord(Integer id);
	
	
	/**
	 * 获取待查看的记录
	 * @param query
	 * @param p
	 * @param session
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="/LoginFilter/getWaitShowList.do",
	produces={"application/json;charset=utf-8"})
	public String getWaitShowList(OwnQuery query,Page<OwnWordRecord> p,HttpSession session);
	
	/**
	 * 获取已查看的记录
	 * @param query
	 * @param p
	 * @param session
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="/LoginFilter/getAlreadyShowList.do",
	produces={"application/json;charset=utf-8"})
	public String getAlreadyShowList(OwnQuery query,Page<OwnWordRecord> p,HttpSession session);
	
	@ResponseBody
	@RequestMapping(value="/getVerifyCodeOff.do",
	produces={"application/json;charset=utf-8"})
	public String getVerifyCodeOff();
	
	@ResponseBody
	@RequestMapping(value="/LoginFilter/moDiFyVerifyCodeOff.do",
	produces={"application/json;charset=utf-8"})
	public String moDiFyVerifyCodeOff(boolean isOff);
	

	@ResponseBody
	@RequestMapping(value="/LoginFilter/userInfoUpQuery.do",
	produces={"application/json;charset=utf-8"})
	public String userInfoUpQuery(HttpSession session);
		
	@ResponseBody
	@RequestMapping(value="/LoginFilter/ownerPageQuery.do",
	produces={"application/json;charset=utf-8"})
	public String ownerPageQuery(HttpSession session);
	
}
